package com.tz.farmer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smartPark.msframe.result.ResultEx;
import com.tz.farmer.model.FarmerUserInfo;
import com.tz.farmer.so.FarmerUserInfoSo;
import com.tz.farmer.vo.FarmerUserInfoVo;
import org.omg.CORBA.OBJ_ADAPTER;


import java.util.List;
import java.util.Map;


/**
 * @ClassName SmartAdminUserInfoService
 * @Description TODO
 * @Creator kaikai
 * @Date 2021/5/11
 */
public interface FarmerUserInfoService extends IService<FarmerUserInfo> {


    /**
     * 模糊查询list
     */
     ResultEx getAdminUserListByConditions(FarmerUserInfoSo so);

    /**
     * 增 改(包含软删 )
     */
    ResultEx updateAdminUserInfo(FarmerUserInfoSo so);

    /**
     * 修改密码
     */
    ResultEx editPassword(FarmerUserInfoSo so);

    /**
     * 条件查询下载列表
     * @param so
     * @return
     */
    List<FarmerUserInfoVo> getUserDownLoadList(FarmerUserInfoSo so);

    /**
     * 硬删除
     * @param so
     * @return
     */
    ResultEx deleteUser(FarmerUserInfoSo so);

    /**
     * 源头企业下拉列表
     * @param
     * @return
     */
    ResultEx businessSelect(String userAccount);
    ResultEx updateUserInfo(String phone,String employeeCode) throws Exception;
    ResultEx phoneExist(String phone) throws Exception;
    List<Map<String,Object>> ifHave(String employeeCode) throws Exception;
    List<Map<String,Object>> selectUserInfoByPhone(String phone) throws Exception;
}
